using System;
using System.Data;
using System.Collections;

namespace APP.QUANLY.Entity
{
     /// <summary>
     /// Summary description for KHACHHANGTHEODOIDOANHTHU.
     /// </summary>
     public class KHACHHANGTHEODOIDOANHTHU
    {
              private Guid _MAKHACHHANG;
      private Int32 _NAM;
      private decimal _THANG1;
      private decimal _THANG2;
      private decimal _THANG3;
      private decimal _THANG4;
      private decimal _THANG5;
      private decimal _THANG6;
      private decimal _THANG7;
      private decimal _THANG8;
      private decimal _THANG9;
      private decimal _THANG10;
      private decimal _THANG11;
      private decimal _THANG12;
      private bool _THEODOI;
      private string _NGUOICAPNHAT;
        private bool isExisting;
        #region Properties
        public bool IsExisting
        {
              get{return isExisting;}
              set{isExisting = value;}
        }
		      public bool IsMAKHACHHANGNullable
      { get { return false;  } }
      public Guid MAKHACHHANG
      {
         get { return _MAKHACHHANG; }
         set { _MAKHACHHANG = value; }
      }
      public bool IsNAMNullable
      { get { return false;  } }
      public Int32 NAM
      {
         get { return _NAM; }
         set { _NAM = value; }
      }
      public bool IsTHANG1Nullable
      { get { return true;  } }
      public decimal THANG1
      {
         get { return _THANG1;  }
         set { _THANG1 = value; }
      }
      public bool IsTHANG2Nullable
      { get { return true;  } }
      public decimal THANG2
      {
         get { return _THANG2;  }
         set { _THANG2 = value; }
      }
      public bool IsTHANG3Nullable
      { get { return true;  } }
      public decimal THANG3
      {
         get { return _THANG3;  }
         set { _THANG3 = value; }
      }
      public bool IsTHANG4Nullable
      { get { return true;  } }
      public decimal THANG4
      {
         get { return _THANG4;  }
         set { _THANG4 = value; }
      }
      public bool IsTHANG5Nullable
      { get { return true;  } }
      public decimal THANG5
      {
         get { return _THANG5;  }
         set { _THANG5 = value; }
      }
      public bool IsTHANG6Nullable
      { get { return true;  } }
      public decimal THANG6
      {
         get { return _THANG6;  }
         set { _THANG6 = value; }
      }
      public bool IsTHANG7Nullable
      { get { return true;  } }
      public decimal THANG7
      {
         get { return _THANG7;  }
         set { _THANG7 = value; }
      }
      public bool IsTHANG8Nullable
      { get { return true;  } }
      public decimal THANG8
      {
         get { return _THANG8;  }
         set { _THANG8 = value; }
      }
      public bool IsTHANG9Nullable
      { get { return true;  } }
      public decimal THANG9
      {
         get { return _THANG9;  }
         set { _THANG9 = value; }
      }
      public bool IsTHANG10Nullable
      { get { return true;  } }
      public decimal THANG10
      {
         get { return _THANG10;  }
         set { _THANG10 = value; }
      }
      public bool IsTHANG11Nullable
      { get { return true;  } }
      public decimal THANG11
      {
         get { return _THANG11;  }
         set { _THANG11 = value; }
      }
      public bool IsTHANG12Nullable
      { get { return true;  } }
      public decimal THANG12
      {
         get { return _THANG12;  }
         set { _THANG12 = value; }
      }
      public bool IsTHEODOINullable
      { get { return true;  } }
      public bool THEODOI
      {
         get { return _THEODOI;  }
         set { _THEODOI = value; }
      }
      public bool IsNGUOICAPNHATNullable
      { get { return true;  } }
      public string NGUOICAPNHAT
      {
         get { return _NGUOICAPNHAT;  }
         set { _NGUOICAPNHAT = value; }
      }

        #endregion

        #region Constructors
        public KHACHHANGTHEODOIDOANHTHU()
        {
            Reset();
        }
        public KHACHHANGTHEODOIDOANHTHU(KHACHHANGTHEODOIDOANHTHU obj)
        {
            	this._MAKHACHHANG = obj.MAKHACHHANG;
	this._NAM = obj.NAM;
	this._THANG1 = obj.THANG1;
	this._THANG2 = obj.THANG2;
	this._THANG3 = obj.THANG3;
	this._THANG4 = obj.THANG4;
	this._THANG5 = obj.THANG5;
	this._THANG6 = obj.THANG6;
	this._THANG7 = obj.THANG7;
	this._THANG8 = obj.THANG8;
	this._THANG9 = obj.THANG9;
	this._THANG10 = obj.THANG10;
	this._THANG11 = obj.THANG11;
	this._THANG12 = obj.THANG12;
	this._THEODOI = obj.THEODOI;
	this._NGUOICAPNHAT = obj.NGUOICAPNHAT;
        }
        #endregion

        public void Reset()
        {
                     _MAKHACHHANG = EmptyValues.v_Guid;
         _NAM = EmptyValues.v_Int32;
         _THANG1 = EmptyValues.v_decimal;
         _THANG2 = EmptyValues.v_decimal;
         _THANG3 = EmptyValues.v_decimal;
         _THANG4 = EmptyValues.v_decimal;
         _THANG5 = EmptyValues.v_decimal;
         _THANG6 = EmptyValues.v_decimal;
         _THANG7 = EmptyValues.v_decimal;
         _THANG8 = EmptyValues.v_decimal;
         _THANG9 = EmptyValues.v_decimal;
         _THANG10 = EmptyValues.v_decimal;
         _THANG11 = EmptyValues.v_decimal;
         _THANG12 = EmptyValues.v_decimal;
         _THEODOI = EmptyValues.v_bool;
         _NGUOICAPNHAT = EmptyValues.v_string;
        }

         
        #region Hidden

        /*
        private void readProperties(IDataReader reader)
        {
            try
            {
                                if(!(reader["MAKHACHHANG"] is DBNull))
		{
			obj.MAKHACHHANG = (Guid)reader["MAKHACHHANG"];
		}
                if(!(reader["NAM"] is DBNull))
		{
			obj.NAM = (Int32)reader["NAM"];
		}
                if(!(reader["THANG1"] is DBNull))
		{
			obj.THANG1 = (decimal)reader["THANG1"];
		}
                if(!(reader["THANG2"] is DBNull))
		{
			obj.THANG2 = (decimal)reader["THANG2"];
		}
                if(!(reader["THANG3"] is DBNull))
		{
			obj.THANG3 = (decimal)reader["THANG3"];
		}
                if(!(reader["THANG4"] is DBNull))
		{
			obj.THANG4 = (decimal)reader["THANG4"];
		}
                if(!(reader["THANG5"] is DBNull))
		{
			obj.THANG5 = (decimal)reader["THANG5"];
		}
                if(!(reader["THANG6"] is DBNull))
		{
			obj.THANG6 = (decimal)reader["THANG6"];
		}
                if(!(reader["THANG7"] is DBNull))
		{
			obj.THANG7 = (decimal)reader["THANG7"];
		}
                if(!(reader["THANG8"] is DBNull))
		{
			obj.THANG8 = (decimal)reader["THANG8"];
		}
                if(!(reader["THANG9"] is DBNull))
		{
			obj.THANG9 = (decimal)reader["THANG9"];
		}
                if(!(reader["THANG10"] is DBNull))
		{
			obj.THANG10 = (decimal)reader["THANG10"];
		}
                if(!(reader["THANG11"] is DBNull))
		{
			obj.THANG11 = (decimal)reader["THANG11"];
		}
                if(!(reader["THANG12"] is DBNull))
		{
			obj.THANG12 = (decimal)reader["THANG12"];
		}
                if(!(reader["THEODOI"] is DBNull))
		{
			obj.THEODOI = (bool)reader["THEODOI"];
		}
                if(!(reader["NGUOICAPNHAT"] is DBNull))
		{
			obj.NGUOICAPNHAT = (string)reader["NGUOICAPNHAT"];
		}
//            _MAKHACHHANG = (reader["MAKHACHHANG"] is DBNull)?DalTools.EmptyValues.v_Guid:(Guid)reader["MAKHACHHANG"];
//            _NAM = (reader["NAM"] is DBNull)?DalTools.EmptyValues.v_Int32:(Int32)reader["NAM"];
//            _THANG1 = (reader["THANG1"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG1"];
//            _THANG2 = (reader["THANG2"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG2"];
//            _THANG3 = (reader["THANG3"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG3"];
//            _THANG4 = (reader["THANG4"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG4"];
//            _THANG5 = (reader["THANG5"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG5"];
//            _THANG6 = (reader["THANG6"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG6"];
//            _THANG7 = (reader["THANG7"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG7"];
//            _THANG8 = (reader["THANG8"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG8"];
//            _THANG9 = (reader["THANG9"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG9"];
//            _THANG10 = (reader["THANG10"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG10"];
//            _THANG11 = (reader["THANG11"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG11"];
//            _THANG12 = (reader["THANG12"] is DBNull)?DalTools.EmptyValues.v_decimal:(decimal)reader["THANG12"];
//            _THEODOI = (reader["THEODOI"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["THEODOI"];
//            _NGUOICAPNHAT = (reader["NGUOICAPNHAT"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["NGUOICAPNHAT"];
            }
            catch (Exception ex)
            {
                throw new DalException("Failed to read properties from DataReader.", ex);
            }
        } 
        */

        #endregion


        public void Fill(Guid MAKHACHHANG, Int32 NAM, decimal THANG1, decimal THANG2, decimal THANG3, decimal THANG4, decimal THANG5, decimal THANG6, decimal THANG7, decimal THANG8, decimal THANG9, decimal THANG10, decimal THANG11, decimal THANG12, bool THEODOI, string NGUOICAPNHAT)
        {
                     this._MAKHACHHANG = MAKHACHHANG;
         this._NAM = NAM;
         this._THANG1 = THANG1;
         this._THANG2 = THANG2;
         this._THANG3 = THANG3;
         this._THANG4 = THANG4;
         this._THANG5 = THANG5;
         this._THANG6 = THANG6;
         this._THANG7 = THANG7;
         this._THANG8 = THANG8;
         this._THANG9 = THANG9;
         this._THANG10 = THANG10;
         this._THANG11 = THANG11;
         this._THANG12 = THANG12;
         this._THEODOI = THEODOI;
         this._NGUOICAPNHAT = NGUOICAPNHAT;
        }
    }
}